package net.mihome.app.bean;

import java.io.Serializable;

/**
 * 实体基类：实现序列化
 * @author liux (http://my.oschina.net/liux)
 * @version 1.0
 * @created 2012-3-21
 */
public abstract class MihomeBase implements Serializable {

	public final static String UTF8 = "UTF-8";
    public static Integer convertFromObj(Object objOfNumber){
        try{
            Double doubleNum=(Double)objOfNumber;
            if(doubleNum==null){
                return null;
            }
            return doubleNum.intValue();
        }catch (Exception e){
            return null;
        }
    }

    public static void main(String[] args) {
        Object d=null;
        System.out.println(convertFromObj(d));
    }
}
